home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-07-05 | 5.9 KB | 105 lines | [TEXT/R*ch] |
- s/^/;/
- s/^;[ ]*$//
- s/\[ /(/g
- s/ \]/)/g
- s/\[/(/g
- s/\]/)/g
- /Xconq/s/^;Xconq . [+-]* \(.*\)$/(game-module "???"\
- (blurb "\1")\
- )\
- /
- /period/s/;\(.*\) period-name/(game-module (title \1))/
- /utype/s/;"\(.\)" "\(.*\)" "\(.*\)" utype/(unit-type \1 (name "\2") (char "\1")\
- (help "\3"))/
- /rtype/s/;"\(.\)" "\(.*\)" "\(.*\)" rtype/(material-type |\2| (help "\3"))/
- /ttype/s/;"\(.\)" "\(.*\)" "\(.*\)" ttype/(terrain-type |\2| (char "\1") (color "\3"))/
- /icon-name/s/;\(.*\) \(.*\) icon-name[ ]*$/(add \2 image-name \1)/
- /define/s/;\(.*\) "\(.*\)" define/(define \2 \1)/
-
- $a\
- (game-module (instructions (\
- \ \ )))\
- (game-module (notes (\
- \ \ )))\
- (game-module (design-notes (\
- \ \ )))
- /^;[ ]*end[ ]*$/d
- /edge-terrain/s/;\(.*\) edge-terrain[ ]*$/(set edge-terrain \1)/
- /country-size/s/;\(.*\) country-size[ ]*$/(set country-radius-min \1)/
- /country-min-distance/s/;\(.*\) country-min-distance[ ]*$/(set country-separation-min \1)/
- /country-max-distance/s/;\(.*\) country-max-distance[ ]*$/(set country-separation-max \1)/
- /min-alt/s/;\([^ ()]*\) \([^ ()]*\) min-alt[ ]*$/(add \2 alt-percentile-min \1)/
- /min-alt/s/;\([^ ()]\) \((.*)\) min-alt[ ]*$/(add \2 alt-percentile-min \1)/
- /min-alt/s/;\((.*)\) \([^ ()]*\) min-alt[ ]*$/(add \2 alt-percentile-min \1)/
- /min-alt/s/;\((.*)\) \((.*)\) min-alt[ ]*$/(add \2 alt-percentile-min \1)/
-
- /max-alt/s/;\([^ ()]*\) \([^ ()]*\) max-alt[ ]*$/(add \2 alt-percentile-max \1)/
- /max-alt/s/;\([^ ()]\) \((.*)\) max-alt[ ]*$/(add \2 alt-percentile-max \1)/
- /max-alt/s/;\((.*)\) \([^ ()]*\) max-alt[ ]*$/(add \2 alt-percentile-max \1)/
- /max-alt/s/;\((.*)\) \((.*)\) max-alt[ ]*$/(add \2 alt-percentile-max \1)/
-
- /min-wet/s/;\([^ ()]*\) \([^ ()]*\) min-wet[ ]*$/(add \2 wet-percentile-min \1)/
- /min-wet/s/;\([^ ()]\) \((.*)\) min-wet[ ]*$/(add \2 wet-percentile-min \1)/
- /min-wet/s/;\((.*)\) \([^ ()]*\) min-wet[ ]*$/(add \2 wet-percentile-min \1)/
- /min-wet/s/;\((.*)\) \((.*)\) min-wet[ ]*$/(add \2 wet-percentile-min \1)/
-
- /max-wet/s/;\([^ ()]*\) \([^ ()]*\) max-wet[ ]*$/(add \2 wet-percentile-max \1)/
- /max-wet/s/;\([^ ()]\) \((.*)\) max-wet[ ]*$/(add \2 wet-percentile-max \1)/
- /max-wet/s/;\((.*)\) \([^ ()]*\) max-wet[ ]*$/(add \2 wet-percentile-max \1)/
- /max-wet/s/;\((.*)\) \((.*)\) max-wet[ ]*$/(add \2 wet-percentile-max \1)/
-
- /in-country/s/;\([^ ()]*\) \([^ ()]*\) in-country[ ]*$/(add \2 start-with \1)/
- /in-country/s/;\([^ ()]\) \((.*)\) in-country[ ]*$/(add \2 start-with \1)/
- /in-country/s/;\((.*)\) \([^ ()]*\) in-country[ ]*$/(add \2 start-with \1)/
- /in-country/s/;\((.*)\) \((.*)\) in-country[ ]*$/(add \2 start-with \1)/
-
- /density/s/;\([^ ()]*\) \([^ ()]*\) density[ ]*$/(add \2 independent-density \1)/
- /density/s/;\([^ ()]\) \((.*)\) density[ ]*$/(add \2 independent-density \1)/
- /density/s/;\((.*)\) \([^ ()]*\) density[ ]*$/(add \2 independent-density \1)/
- /density/s/;\((.*)\) \((.*)\) density[ ]*$/(add \2 independent-density \1)/
-
- /hp/s/;\([^ ()]*\) \([^ ()]*\) hp[ ]*$/(add \2 hp-max \1)/
- /hp/s/;\([^ ()]\) \((.*)\) hp[ ]*$/(add \2 hp-max \1)/
- /hp/s/;\((.*)\) \([^ ()]*\) hp[ ]*$/(add \2 hp-max \1)/
- /hp/s/;\((.*)\) \((.*)\) hp[ ]*$/(add \2 hp-max \1)/
-
- /territory/s/;\([^ ()]*\) \([^ ()]*\) territory[ ]*$/(add \2 point-value \1)/
- /territory/s/;\([^ ()]\) \((.*)\) territory[ ]*$/(add \2 point-value \1)/
- /territory/s/;\((.*)\) \([^ ()]*\) territory[ ]*$/(add \2 point-value \1)/
- /territory/s/;\((.*)\) \((.*)\) territory[ ]*$/(add \2 point-value \1)/
-
- /revolt/s/;\([^ ()]*\) \([^ ()]*\) revolt[ ]*$/(add \2 revolt-chance \1)/
- /revolt/s/;\([^ ()]\) \((.*)\) revolt[ ]*$/(add \2 revolt-chance \1)/
- /revolt/s/;\((.*)\) \([^ ()]*\) revolt[ ]*$/(add \2 revolt-chance \1)/
- /revolt/s/;\((.*)\) \((.*)\) revolt[ ]*$/(add \2 revolt-chance \1)/
-
- /neutral/s/;\([^ ()]*\) \([^ ()]*\) neutral[ ]*$/(add \2 can-be-independent \1)/
- /neutral/s/;\([^ ()]\) \((.*)\) neutral[ ]*$/(add \2 can-be-independent \1)/
- /neutral/s/;\((.*)\) \([^ ()]*\) neutral[ ]*$/(add \2 can-be-independent \1)/
- /neutral/s/;\((.*)\) \((.*)\) neutral[ ]*$/(add \2 can-be-independent \1)/
-
- /favored/s/;\([^ ()]*\) \([^ ()]*\) \([^ ()]*\) favored[ ]*$/(add table favored-terrain (\3 \2 \1))/
- /foo/s/;\([^ ()]\) \((.*)\) favored[ ]*$/(add table favored-terrain (foo \2 \1))/
- /favored/s/;\((.*)\) \([^ ()]*\) \([^ ()]*\) favored[ ]*$/(add table favored-terrain (\3 \2 \1))/
- /foo/s/;\((.*)\) \((.*)\) favored[ ]*$/(add table favored-terrain (foo \2 \1))/
- /hit/s/;\([^ ()]*\) \([^ ()]*\) \([^ ()]*\) hit[ ]*$/(add table hit-chance (\3 \2 \1))/
- /foo/s/;\([^ ()]\) \((.*)\) hit[ ]*$/(add table hit-chance (foo \2 \1))/
- /hit/s/;\((.*)\) \([^ ()]*\) \([^ ()]*\) hit[ ]*$/(add table hit-chance (\3 \2 \1))/
- /foo/s/;\((.*)\) \((.*)\) hit[ ]*$/(add table hit-chance (foo \2 \1))/
- /damage/s/;\([^ ()]*\) \([^ ()]*\) \([^ ()]*\) damage[ ]*$/(add table damage (\3 \2 \1))/
- /foo/s/;\([^ ()]\) \((.*)\) damage[ ]*$/(add table damage (foo \2 \1))/
- /damage/s/;\((.*)\) \([^ ()]*\) \([^ ()]*\) damage[ ]*$/(add table damage (\3 \2 \1))/
- /foo/s/;\((.*)\) \((.*)\) damage[ ]*$/(add table damage (foo \2 \1))/
- /hits-with/s/;\([^ ()]*\) \([^ ()]*\) \([^ ()]*\) hits-with[ ]*$/(add table hits-with (\3 \2 \1))/
- /foo/s/;\([^ ()]\) \((.*)\) hits-with[ ]*$/(add table hits-with (foo \2 \1))/
- /hits-with/s/;\((.*)\) \([^ ()]*\) \([^ ()]*\) hits-with[ ]*$/(add table hits-with (\3 \2 \1))/
- /foo/s/;\((.*)\) \((.*)\) hits-with[ ]*$/(add table hits-with (foo \2 \1))/
- /hit-by/s/;\([^ ()]*\) \([^ ()]*\) \([^ ()]*\) hit-by[ ]*$/(add table hit-by (\3 \2 \1))/
- /foo/s/;\([^ ()]\) \((.*)\) hit-by[ ]*$/(add table hit-by (foo \2 \1))/
- /hit-by/s/;\((.*)\) \([^ ()]*\) \([^ ()]*\) hit-by[ ]*$/(add table hit-by (\3 \2 \1))/
- /foo/s/;\((.*)\) \((.*)\) hit-by[ ]*$/(add table hit-by (foo \2 \1))/
- /capture/s/;\([^ ()]*\) \([^ ()]*\) \([^ ()]*\) capture[ ]*$/(add table capture-chance (\3 \2 \1))/
- /foo/s/;\([^ ()]\) \((.*)\) capture[ ]*$/(add table capture-chance (foo \2 \1))/
- /capture/s/;\((.*)\) \([^ ()]*\) \([^ ()]*\) capture[ ]*$/(add table capture-chance (\3 \2 \1))/
- /foo/s/;\((.*)\) \((.*)\) capture[ ]*$/(add table capture-chance (foo \2 \1))/
-